package com.smedi.ismedi.organization.api.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author yangzhenzhou
 * @date 2022/11/30
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("组织机构下项目职务配置短信提醒入参")
public class SendMessageByJobRequest {
    @ApiModelProperty(value = "检查职务",required = true)
    @NotEmpty(message = "检查职务不为空！")
    private List<String> checkJobNames;

    @ApiModelProperty(value = "最后期限",required = true)
    @NotNull(message = "最后期限不为空！")
    private String deadline;

    @ApiModelProperty(value = "接收短信角色",required = true)
    @NotEmpty(message = "接收短信角色不为空！")
    private List<String> receiverRoles;
}
